﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VectorDraw.Professional.vdCollections;
using VectorDraw.Professional.vdPrimaries;
using System.Data;

namespace PDNPAS
{
    public class StaticVariables
    {
        public static vdControls.vdFramedControl vdFC = new vdControls.vdFramedControl();
        
        public static int loginStatus = 0; //用于标识用户是否正常登陆

        public static List<Land> landList = new List<Land>();//用于存放规划区域的地块
        public static List<Land> landCollectionList = new List<Land>();//用于统计各个用地性质的地块详细信息
        public static List<Land> landCollectionForecastList = new List<Land>();//用于统计各种用地性质地块的负荷

        public static List<vdLayer> layerList = new List<vdLayer>();

        public static int loadDensityPlanNum = 0;//用于存放负荷密度方案编号

        public static DataTable loadOfYear = new DataTable("逐年负荷");//用于存放逐年负荷

        public static double a = 0;//用于存放计算好的回归系数y=a+bx
        public static double b = 0;

        public static User user = new User();//用于存放登陆的用户

        //便于工程统计
        public static List<Substation> substationList = new List<Substation>();//用于存放所有的变电站
        public static List<SwitchStation> switchStationList = new List<SwitchStation>();//用于存放所有的开关站
        public static List<Loopstation> loopstationList = new List<Loopstation>();//用于存放所有的环网站
        public static List<SupplyArea> supplyAreaList = new List<SupplyArea>();//用于存放各个供区
        public static List<Transline> translineList = new List<Transline>();//用于存放所有的输电线路
        public static List<StandardUnit> standardUnitList = new List<StandardUnit>();//用于存放所有的标准单元

        public static int substationIndex = -1;

        //便于excel文件输出
        public static DataSet excelDS = new DataSet();

    }
}
